#include <iostream>

using namespace std;

int main() {
    int t,a,b;
    cin>>t;
    // T=2,-1111111111111111111-1,
    while(t--){
        cin>>a>>b;
        cout<<a+b<<endl;
    }
}